package cn.yujiago.activiti.mapper;

import cn.yujiago.activiti.dto.FinanceBillVO;
import cn.yujiago.activiti.entity.FinanceBill;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FinanceBillMapper {

    /**
     * 插入，并返回主键
     */
    Long insert(FinanceBillVO financeBillVO);

    /**
     * 根据ID查询
     */
    FinanceBill selectById(@Param("id") String id);

    /**
     * 根据ID更新状态
     */
    void updateFinanceBillStatus(FinanceBill financeBill);
}
